package edu.umd.fosite.ui;

import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;

public class UIUtils {

	public static void centerOnScreen(JFrame frame) {
		Dimension sSize = Toolkit.getDefaultToolkit().getScreenSize();
		Dimension fSize = frame.getSize();
		frame.setLocation(sSize.width / 2 - fSize.width / 2, sSize.height / 2
				- fSize.height / 2);
	}

}
